<?php 
session_start();
include '../../../cfg/cfg.inc.php';
include '../../../include/functions.inc.php';


$idAsig = getParam('Cli1');
$_SESSION['career'] = $idAsig;
$Querry_recordSet = "SELECT * 
                    FROM cllg_assign_detail 
                    WHERE FK_ASSIGN = '$idAsig'";

$recordset = $db->query($Querry_recordSet);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Cursos Aprobados</title>
        <link rel="stylesheet" 
    </head>

    <body>

        <form id="form1" name="form1" method="post" action="">
            <table width="475" border="0" class="table-bordered table-striped table-hover">
                <tr>
                    <td colspan="2"></td>
                </tr>
                <tr>
                    <td colspan="2"><legend>Seleccione el Curso</legend></td>
                </tr>
                <?php
                while ($prueba = mysql_fetch_assoc($recordset)){
                    $curso = $prueba['FK_COURSE'];
                    $courses = "select * from cllg_courses_catalog where CODE = '$curso'";
                    $recordset77 = $db->query($courses);
                    $prueba77 = mysql_fetch_assoc($recordset77);
		?>
                <tr>
                  <td width="238" align="left" id="NvoMov"><?php echo $prueba77['NAME'];?></td>
                  <td width="119" align="center" id="NvoMov">
                      <a href=""> 
                          <i class="icon-ok" onclick="javascript:report12('<?=$prueba77['CODE']?>')"></i> 
                      </a>
                  </td>
                </tr>
                <?php
                }
                ?>
            </table>
        </form>
    </body>
</html>
